<script setup>
import  {ref } from 'vue'
import childComponent from './子组件.vue'
import myinputnumber from './子组件.vue'
// function fn() {
//   console.log(333);
// }
const num = ref(1)
  function onChange(newNum) {
    num.value = newNum
  }
</script>

<template>
  <!-- <child-component @fn="fn" msg="hello world" /> -->
  <myinputnumber
    :value="num"
    @change="onChange"
    :step="1"
  />

</template>

<style scope>

</style>
